package com.vhall.component.service.interactive;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vhall.component.entity.interactive.vo.*;
import com.vhall.component.entity.room.RoomDocumentsEntity;

/**
 * @author CodeGenerator
 * @date 2021-04-14 15:50:28
 * @describe 文档关联服务类
 */
public interface DocumentsRoomService extends IService<RoomDocumentsEntity> {
    /**
     * 文档上传
     *
     * @param reqVO
     * @return
     */
    DocumentUploadRsp upload(DocumentUploadReqVO reqVO);

    /**
     * 获取文档列表
     *
     * @param reqVO
     * @return
     */
    DocumentListRspVO list(DocumentListReqVO reqVO);

    /**
     * 删除文档
     *
     * @param reqVO
     * @return
     */
    Boolean delete(DocumentDeleteReqVO reqVO);

    /**
     * 更新文档
     *
     * @param reqVO
     * @return
     */
    Boolean update(DocumentUpdateReqVO reqVO);

    /**
     * 根据文档id查询文档信息
     *
     * @param documentId 文档id
     * @param roomId     房间id
     */
    RoomDocumentsEntity getInfo(String documentId, String roomId);
}
